package com.googlecode.perfectable.prosperable.entry;

import javax.annotation.Nullable;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class ChannelManagerListener implements HttpSessionListener {
	
	@Override
	public void sessionCreated(@Nullable HttpSessionEvent se) {
		if(se == null) {
			throw new RuntimeException();
		}
		final HttpSession session = se.getSession();
		ChannelManager.extractInbound(session);
		ChannelManager.extractOutbound(session);
	}
	
	@Override
	public void sessionDestroyed(@Nullable HttpSessionEvent se) {
		if(se == null) {
			throw new RuntimeException();
		}
		// MARK close?
	}

}
